<view class="splice-page">
    <canvas canvasId="tempCanvas" style="width:750rpx;height:{{totalHeight}}px;position:absolute;left:-999999px"></canvas>
    <view bindtap="saveImgToPhone" class="saveButton" wx:if="{{readuSave}}">
        <text class="icon-save"></text>
    </view>
    <scroll-view scrollY class="longImage" style="height:{{imgViewHeight}}px" wx:if="{{page==='longImages'}}">
        <view class="img-wrapbox" wx:for="{{longImageSrcs}}" wx:key="*this">
            <image catchlongtap="gotoDelete" catchtap="quitDelete" data-idx="{{index}}" mode="widthFix" src="{{item}}"></image>
            <text bindtap="deleteImg" class="deleteTextBox" style="top:50%" wx:if="{{whichDeleteShow==index}}">删除这张？</text>
        </view>
    </scroll-view>
    <view bindtouchend="uploadScaleEnd" bindtouchmove="uploadScaleMove" bindtouchstart="uploadScaleStart" class="photoframe" style="height:{{frameHeight}}px" wx:if="{{page==='photoFrame'}}">
        <image class="frame" mode="widthFix" src="{{frameSrc}}"></image>
        <image class="photo" disableScroll="true" src="{{photoSrc}}" style="width:{{photoWidth}}px;height:{{photoHeight}}px;top:{{photoTop}}px;left:{{photoLeft}}px"></image>
    </view>
    <view class="toolbar-bottom" wx:if="{{page==='longImages'}}">
        <view bindtap="addImages">
            <text class="icon-listadd"></text>
            <text class="text">添加图片</text>
        </view>
    </view>
    <view class="toolbar-bottom" wx:if="{{page==='photoFrame'}}">
        <view bindtap="addFrame">
            <text class="icon-frame"></text>
            <text class="text">选择相框</text>
        </view>
        <view bindtap="addPhoto">
            <text class="icon-photo"></text>
            <text class="text">添加照片</text>
        </view>
    </view>
    <view class="farmeChoose" wx:if="{{isFrameChoose}}">
        <view class="farmeChoose-top">
            <text class="farmeChoose-top-left">选择相框</text>
            <text bindtap="closeFrameChoose" class="farmeChoose-top-right"></text>
        </view>
        <scroll-view>
            <view bindtap="chooseFrame" class="frameBox" data-src="{{item.src}}" wx:for="{{frameSrcs}}" wx:key="*this">
                <image mode="aspectFit" src="{{'../../image/frame/'+item.src}}"></image>
                <text>{{item.title}}</text>
            </view>
        </scroll-view>
    </view>
</view>
